package edu.ynu.se.xiecheng.achitectureclass.service;
import edu.ynu.se.xiecheng.achitectureclass.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SomeService {

    private final YingShiTokenService tokenService;

    @Autowired
    public SomeService(YingShiTokenService tokenService) {
        this.tokenService = tokenService;
    }

    public String useToken() {
        String accessToken = tokenService.getAccessToken();
        return accessToken;
    }
}
